package com.heima.user;

import org.junit.jupiter.api.Test;
import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.client.RestTemplate;

import java.util.HashMap;

public class AIyongyou {
    @Test
    public void idCardTest(){
        RestTemplate restTemplate = new RestTemplate();
        HttpHeaders headers = new HttpHeaders();
        headers.setContentType(MediaType.APPLICATION_JSON);
        //headers.set("apicode","网站中的code");

        // 请求参数
        HashMap<String, String> paramMap = new HashMap<>();
        paramMap.put("idNumber","320982199712051017");
        paramMap.put("username","李进");
        //ResponseEntity<String> responseEntity =  restTemplate.postForEntity("测试网站的地址");
        //System.out.println(responseEntity.getBody());
    }
}
